package com.ruoyi.btlfbreed.domain;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * chickenHouses对象 tb_chicken_houses
 * 
 * @author codeman
 * @date 2024-05-03
 */
public class TbChickenHouses extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long houseId;

    /** 鸡舍名称 */
    @Excel(name = "鸡舍名称")
    private String houseName;

    /** 鸡舍编号 */
    @Excel(name = "鸡舍编号")
    private String houseCode;

    /** 鸡舍容量（只） */
    @Excel(name = "鸡舍容量", readConverterExp = "只=")
    private Long capacity;

    /** 鸡舍状态（0=活跃, 1=停用, 2=维修中） */
    @Excel(name = "鸡舍状态", readConverterExp = "0==活跃,,1==停用,,2==维修中")
    private String status;

    /** 当前存栏量（只） */
    @Excel(name = "当前存栏量", readConverterExp = "只=")
    private Long currentCount;

    /** 上次检查日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次检查日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastInspectionDate;

    /** 管理员 */

    private Long userId;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;
    @Excel(name = "管理员")
    private  String userName;


    /** 消毒记录信息 */
    private List<TbChickenDisinfectionRecords> tbChickenDisinfectionRecordsList;

    public String getUserName()
    {
        return userName;
    }

    public void setUserName(String userName)
    {
        this.userName = userName;
    }
    public void setHouseId(Long houseId) 
    {
        this.houseId = houseId;
    }

    public Long getHouseId() 
    {
        return houseId;
    }
    public void setHouseName(String houseName) 
    {
        this.houseName = houseName;
    }

    public String getHouseName() 
    {
        return houseName;
    }
    public void setHouseCode(String houseCode) 
    {
        this.houseCode = houseCode;
    }

    public String getHouseCode() 
    {
        return houseCode;
    }
    public void setCapacity(Long capacity) 
    {
        this.capacity = capacity;
    }

    public Long getCapacity() 
    {
        return capacity;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setCurrentCount(Long currentCount) 
    {
        this.currentCount = currentCount;
    }

    public Long getCurrentCount() 
    {
        return currentCount;
    }
    public void setLastInspectionDate(Date lastInspectionDate) 
    {
        this.lastInspectionDate = lastInspectionDate;
    }

    public Date getLastInspectionDate() 
    {
        return lastInspectionDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    public List<TbChickenDisinfectionRecords> getTbChickenDisinfectionRecordsList()
    {
        return tbChickenDisinfectionRecordsList;
    }

    public void setTbChickenDisinfectionRecordsList(List<TbChickenDisinfectionRecords> tbChickenDisinfectionRecordsList)
    {
        this.tbChickenDisinfectionRecordsList = tbChickenDisinfectionRecordsList;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("houseId", getHouseId())
            .append("houseName", getHouseName())
            .append("houseCode", getHouseCode())
            .append("capacity", getCapacity())
            .append("status", getStatus())
            .append("currentCount", getCurrentCount())
            .append("lastInspectionDate", getLastInspectionDate())
            .append("userId", getUserId())
            .append("remark", getRemark())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
